package cn.itcast.service.impl;

import cn.itcast.mapper.FeedbackMapper;
import cn.itcast.pojo.Notice;
import cn.itcast.service.NoticeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class NoticeServiceImpl implements NoticeService {

    @Resource
    private FeedbackMapper feedbackMapper;

    @Override
    public Notice getNoticeNewest() {
        return feedbackMapper.getNewNotice();
    }
}
